package cn.yunhe.entity;

public class Reply {


    private  int rid;//回复编号
    private  String context;//回复内容
    private  String time;//回复的时间
    private  User user;//用户的属性
    private  Topic topic;//主帖的属性

    public Reply() {
    }

    public Reply(String context, User user) {
        this.context = context;
        this.user = user;
    }

    public Reply(String context, User user, Topic topic) {
        this.context = context;
        this.user = user;
        this.topic = topic;
    }

    public Reply(int rid, String context, String time, User user, Topic topic) {
        this.rid = rid;
        this.context = context;
        this.time = time;
        this.user = user;
        this.topic = topic;
    }

    public int getRid() {
        return rid;
    }

    public void setRid(int rid) {
        this.rid = rid;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Topic getTopic() {
        return topic;
    }

    public void setTopic(Topic topic) {
        this.topic = topic;
    }
}
